﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WLMes.Models
{

    public class ASK_TASK
    {
        /// <summary>
        /// 请求编号
        /// </summary>
        public string RequestCode { get; set; }
        /// <summary>
        /// 产线编号
        /// </summary>
        public string LineCode { get; set; }
        /// <summary>
        /// 工序编号
        /// </summary>
        public string OperationCode { get; set; }
        /// <summary>
        /// 工序短名称
        /// </summary>
        public string OperationShortName { get; set; }
        /// <summary>
        /// 事件码
        /// </summary>
        public ushort EventCode { get; set; }
        /// <summary>
        /// 生产任务号
        /// </summary>
        public string TaskNumber { get; set; }
        /// <summary>
        /// 请求（操作）时间
        /// </summary>
        public string RequestTime { get; set; }
    }

    /// <summary>
    /// 需求单
    /// 输入参数
    /// </summary>
    public class ASK_TASK_request
    {
        /// <summary>
        /// 请求编号
        /// </summary>
        public string RequestCode { get; set; }
        /// <summary>
        /// 产线编号
        /// </summary>
        public string LineCode { get; set; }
        /// <summary>
        /// 工序编号
        /// </summary>
        public string OperationCode { get; set; }
        /// <summary>
        /// 工序短名称
        /// </summary>
        public string OperationShortName { get; set; }
        /// <summary>
        /// 事件码
        /// </summary>
        public ushort EventCode { get; set; }
        /// <summary>
        /// 当前在产的生产批次号
        /// </summary>
        public string TaskNumber { get; set; }
        /// <summary>
        /// 请求（操作）时间
        /// </summary>
        public string RequestTime { get; set; }

    }


    /// <summary>
    /// 回传数据
    /// 返回信息
    /// </summary>
    public class ASK_TASK_response
    {
        /// <summary>
        /// 事件码
        /// </summary>
        public ushort EventCode { get; set; }
        /// <summary>
        /// 描述信息
        /// </summary>
        public string EventDescription { get; set; }
        /// <summary>
        /// 产线编号
        /// </summary>
        public string LineCode { get; set; }
        /// <summary>
        /// 工序编号
        /// </summary>
        public string OperationCode { get; set; }
        /// <summary>
        /// 工序短名称
        /// </summary>
        public string OperationShortName { get; set; }
        /// <summary>
        ///工艺信息
        /// </summary>
        /// 
        [SugarColumn(IsIgnore = true)]
        public List<ProcessInfo> ProcessInfo { get; set; } = new List<ProcessInfo>();
        [SugarColumn(IsIgnore = false)]
        public string ASK_TASK_response_ID { get; set; }
        [SugarColumn(IsIgnore = false)]
        public string ProcessInfo_ID { get; set; }
    }
    /// <summary>
    /// 工艺信息
    /// </summary>

    public class ProcessInfo
    {
        public int BatchSequence { get; set; }
        public string CategoryType { get; set; }
        public int PartsQuantity { get; set; }
        public string ProductionBatchCode { get; set; }

        public List<BoardMaterialSets> BoardMaterialSets { get; set; } = new List<BoardMaterialSets>();

        public List<TaskSets> TaskSets { get; set; } = new List<TaskSets>();

        public DateTime processinfoUserTime { get; set; }


    }
    [SugarTable(TableName = "ProcessInfo")]
    public class ProcessInfoVO
    {
        // 顺序
        public int BatchSequence { get; set; }
        // 种类
        public string CategoryType { get; set; }
        // 数量
        public int PartsQuantity { get; set; }
         // 批次
        public string ProductionBatchCode { get; set; }
        // 时间
        public DateTime processinfoUserTime { get; set; }
        // 材料
        public string BoardMaterialSets_ID { get; set; }
        //任务
        public string TaskSets_ID { get; set; }
        // ID
        public string ProcessInfo_ID {get; set; }
        // 完成数量
        public string PartsDone {  get; set; }
    }




}
